package top.maof.book.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.maof.book.model.History;
import top.maof.book.result.PageData;
import top.maof.book.result.PageWrap;

import java.util.List;

public interface HistoryService extends IService<History> {
    // 获取用户历史纪录
    @Deprecated
    List<History> findHistoriesByUser(Integer userId);

    PageData<History> findPage(PageWrap<History> pageWrap);

    //小说点击率
    @Deprecated
    int clickCount(int bookId);

    @Deprecated
    int add(History history);
}
